<?php

	class Customer_model extends CI_Model {

		protected $__tbname = 'customer';
		protected $__dbconf = 'default';

		var $id;	//bigint(20) unsigned	Primary Key	Auto Increment	NOT NULL
		var $fb_username;	//varchar(50)	Unique Key		NULL
		var $full_name;	//varchar(250)			NOT NULL
		var $birth_date;	//datetime			NOT NULL
		var $gender;	//char(1)			NOT NULL
		var $career;	//varchar(100)			NULL
		var $who_often_meet;	//varchar(250)			NULL
		var $expect_inv_party;	//varchar(250)			NULL
		var $your_baileys;	//varchar(50)			NULL
		var $picture;	//varchar(50)			NULL
		var $email;	//varchar(250)	Unique Key		NULL

		protected $__validation_rule = array(
			'id' => array('key' => 'PRI', 'type' => 'bigint', 'null' => FALSE, 'auto_increment' => TRUE),
			'fb_username' => array('key' => 'UNI', 'type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'full_name' => array('type' => 'varchar', 'size' => 250, 'null' => FALSE),
			'birth_date' => array('type' => 'datetime', 'null' => FALSE),
			'gender' => array('type' => 'char', 'size' => 1, 'null' => FALSE),
			'career' => array('type' => 'varchar', 'size' => 100, 'null' => TRUE),
			'who_often_meet' => array('type' => 'varchar', 'size' => 250, 'null' => TRUE),
			'expect_inv_party' => array('type' => 'varchar', 'size' => 250, 'null' => TRUE),
			'your_baileys' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'picture' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'email' => array('key' => 'UNI', 'type' => 'varchar', 'size' => 250, 'null' => TRUE)
		);
	}
